package net.sppan.base.enumType;


/**
 * 留资信息来源
 *
 */
public enum MgUserRegisterType {

    award("award","奖品领取"),
    Coffee("Coffee","咖啡领取"),
    workShop("workShop","workshop分享");

    private String name;

    private String desc;


     MgUserRegisterType(String name , String desc){
         this.name = name;
         this.desc = desc;
    }

    public static String getDescByName(String name){
         return MgUserRegisterType.valueOf(name).desc;
    }

}
